<template>
  <div class="layout-page">
    <!-- 首页架子 - 内容区域 -->
    <router-view />
<!-- 底部导航 -->
    <van-tabbar v-model="active" route>
      <!-- active-color激活时的颜色 inactive-color：未激活时的颜色-->
      <van-tabbar-item to="/index" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/find" icon="home-o">找房</van-tabbar-item>
      <van-tabbar-item to="/news" icon="newspaper-o">资讯</van-tabbar-item>
      <van-tabbar-item to="/user" icon="manager-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'layout-page',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped></style>
